package com.example.entity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 卓小建
 * Date: 2018-12-18
 * Time: 10:57
 * 封装多个学生实体类
 */
@XmlRootElement(name="students")
public class Students {
    private List<Student> students;

    public Students(){
        super();
    }
    public Students(List<Student> students){
        super();
        this.students = students;
    }

    @XmlElement(name="student")
    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }
}
